package com.example.fireassistant_server.mapper;


import com.example.fireassistant_server.dto.user.UserCreateRequest;
import com.example.fireassistant_server.dto.wechat.WechatUserCreateRequest;
import com.example.fireassistant_server.dto.wechat.WechatUserDto;
import com.example.fireassistant_server.entity.User;
import com.example.fireassistant_server.entity.WeChatUser;
import com.example.fireassistant_server.vo.WechatUserVo;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface WechatUserMapper {
    WechatUserDto toDto(WeChatUser weChatUser);
    WechatUserVo toVo(WechatUserDto wechatUserDto);

    WeChatUser createEntity(WechatUserCreateRequest wechatUserCreateRequest);

    User toUser(UserCreateRequest userCreateRequest);

    WeChatUser updateEntity(@MappingTarget WeChatUser weChatUser, WeChatUser weChatUserUpdate);


}
